package com.cn.yang.dao;

import com.cn.yang.model.news.NewsClassifyModel;
import com.cn.yang.model.news.NewsModel;

import java.util.List;

public interface NewsDao {
    List<NewsClassifyModel> findClassify();

    int addNews(NewsModel model);

    List<NewsModel> findNews(NewsModel newsModel);
    List<NewsModel> findNews();

    int countNews();

    NewsModel selectById(Integer id);

    int updateNews(NewsModel model);

    int deleteById(Integer id);
}
